#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QtPlugin>

#include "MGCApplication.h"

#include "QGCMapEngine.h"

int main(int argc, char *argv[])
{
    Q_IMPORT_PLUGIN(QGeoServiceProviderFactoryQGC)

    QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
    MGCApplication* app = new MGCApplication(argc, argv);
    Q_CHECK_PTR(app);

    app->_initCommon();

    getQGCMapEngine()->init();

    if (!app->_initForNormalAppBoot())
    {
        return -1;
    }

    return app->exec();
}
